Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USBResetDevice

The USBResetDevice function resets a specified device. The port the device is attached to sends the reset signal for 10ms, as specified in the USB Specification. The reset does not affect any other devices on the bus, unless the reset device is a hub. However, only hub drivers should be concerned with hubs.

This function should be considered a last resort to bring a misbehaving device back on line. If a device is reset, the driver will have to reinstate the device configuration again, starting with getting a new interface reference. See USBFindNextInterface for details.

OSStatus USBResetDevice(USBPB *pb);

Required fields in USBPB parameter block for the USBResetDevice function are

--> pbLength
Length of parameter block
--> pbVersion
Parameter block version number
--> usbCompletion
The completion routine
--> usbRefcon
General-purpose value passed back to the completion routine
--> usbReference
Device reference
--> usbFlags
Set to 0

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames